# define _CRT_SECURE_NO_WARNINGS 1

#include "QuickSort.h"

void Print(int* a, int len)
{
	for (int i = 0; i < len; ++i)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
}

void Test1()
{
	int a[] = { 6,4,3,12,8,1,2,2,0 };
	int len = sizeof(a) / sizeof(a[0]);
	QuickSort(a, 0, len - 1);
	Print(a, len);
}

void Test2()
{
	int a[] = { 6,4,3,12,8,1,2,2,0 };
	int len = sizeof(a) / sizeof(a[0]);
	QuickSortNonr(a, len);
	Print(a, len);
}

int main()
{
	Test1();
	Test2();
	return 0;
}